package com.jasonchoi.eurekaclient2.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JasonChoi
 * @Date: 2020/2/21 16:04
 */
@RestController
@RequestMapping("/hello")
@Api(tags = "client2相关接口hello")
public class HelloController {


    @ApiOperation(value = "hello接口", httpMethod = "GET", produces = "application/json")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "{\"errcode\": 200,\"errmsg\": ok}", response = String.class),
    })
    @RequestMapping("/list")
    public String hello(){
        return "hello";
    }
}
